<?php
require '../home/config.php';
$val = '';
$ar = explode(';',$val);
$ar = array_filter($ar);
echo count($ar);
dump($ar);die;
$url = 'http://localhost:5021/dien-thoai/?gia=duoi-8-trieu&hdh=android&man=4';
$parse = parse_url($url);
$query = $parse['query'];
//echo $query;
$arr_query = explode('&',$query);
dump($arr_query);
//dump(parse_url($url));


$arr = array(
   'gia'=>array(
      'gia=duoi-1-trieu',
      'gia=duoi-2-trieu',
      'gia=duoi-3-trieu',
      'gia=duoi-5-trieu',
      'gia=duoi-8-trieu',
      'gia=duoi-10-trieu',
      'gia=tren-10-trieu'
   ),
   'hdh'=>array(
      'hdh=android',
      'hdh=ios-iphone',
      'hdh=windows-phone',
      'hdh=he-dieu-hanh-khac'
   ),
   'man'=>array(
      'man=duoi-3',
      'man=khoang-3',
      'man=khoang-4',
      'man=khoang-5',
      'man=khoang-6'
   ),
   'tn'=>array(
      'tn=bang-tan-3g-4g',
      'tn=2-sim-2-song',
      'tn=smartphone',
      'tn=wifi',
      'tn=cam-ung'
   )
);
?>